package com.tiancheng.trade.settlement.mapper.settlement;

import com.tiancheng.trade.settlement.mapper.TYBaseMapper;
import com.tiancheng.trade.settlement.model.settlement.CouponReportData;
import com.tiancheng.trade.settlement.vo.settlement.admin.CouponsReportResultVO;
import com.tiancheng.trade.settlement.vo.settlement.admin.CouponsReportVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 优惠券报表查询
 *
 * @author wangxin
 * @since 2024/5/25
 */
@Repository
public interface CouponReportDataMapper extends TYBaseMapper<CouponReportData> {
    /**
     * 查询
     *
     * @param vo
     * @return
     */
    List<CouponsReportResultVO> query(CouponsReportVO vo);

    /**
     * 批量保存
     *
     * @param datas
     * @return
     */
    int saveBatch(List<CouponReportData> datas);

    /**
     * 修改
     *
     * @param data
     * @return
     */
    int update(CouponReportData data);
}